// loadsh中的函数组合方法 _.flowRight()
const _ = require("loadsh");

const reverse = (arr) => arr.reverse();
const first = (arr) => arr[0];
const toUpper = (s) => s.toUpperCase();

const f = _.flowRight(toUpper, first, reverse);

console.log(f(["one", "two", "three", "four", "five", "six"]));
